package com.ccrfid.rmc6.repository.business.visitroom;

import com.ccrfid.rmc6.entity.business.visitroom.RoomVisitAreaOverallEntity;
import org.springframework.data.repository.Repository;

import java.sql.Date;
import java.util.List;

public interface RoomVisitAreaOverallRepository extends Repository<RoomVisitAreaOverallEntity, Long> {
    //
    RoomVisitAreaOverallEntity save(RoomVisitAreaOverallEntity entity);
    //
    void deleteAllByDutyDate(Date date);
    //
    List<RoomVisitAreaOverallEntity> getAllByDutyDateBetween(Date startDate, Date stopDate);
    //
    List<RoomVisitAreaOverallEntity> getAllByDutyDate(Date date);
}
